function hideBlock(){  
    jQuery.unblockUI();  
 }
 
 
function control3102(){

	if(Form3102.merId.value.trim()==""){
		alert( "请输入商户号！" ) ;
		Form3102.merId.focus() ;
		return ;
	}

	//$.blockUI({ message: ' <img src="images/loading.gif" />' });
	//setTimeout('hideBlock()',800);//1000毫秒后调用hideBlock()
	document.forms[0].action = "perform3102.do";
	document.forms[0].target = "rightdown";
	document.forms[0].submit();
}
 

function createXMLHttpRequest() {
	
	try
    {
   // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
 catch (e)
    {

  // Internet Explorer
   try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
   catch (e)
      {

      try
         {
         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         }
      catch (e)
         {
         alert("AJAX ERROR");
         return false;
         }
      }
    }
	
}
var xmlHttp;

function delRequest(attachId){
	createXMLHttpRequest();
	url = "/agent/perform3102_1.do?attachId="+attachId+"&rand="+Math.random();
	xmlHttp.open("GET", url,false);
	xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlHttp.send();
	if (xmlHttp.readyState == 4) {
		if (xmlHttp.status == 200) {
			return xmlHttp.responseText;
		}
	}
}
  